package day_15;

public class TestThread02 {
    public static void main(String[] args) {
        MyRunable target  = new MyRunable();

        Thread t1 = new Thread(target);
        Thread t2 = new Thread(target);
        Thread t3 = new Thread(target);
        Thread t4 = new Thread(target);

        t1.start();
        t2.start();
        t3.start();
        t4.start();

    }
}

class MyRunable implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(i+"="+Thread.currentThread().getName());
        }
    }
}